<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>CSS章节 第三课 的第二个文件练习</title>
	</head>

	<body>
		<h1 align="center">花式九球</h1>
		<hr>
		<p>
			用所学属性，完成CSS画出花式九球！
		</p>

		<p>基础：</p>

		<div class="ball1">
			<div class="ball4"></div>
		</div>
		<div class="ball2"></div>
		<div class="ball3">
			<div class="ball5"></div>
		</div>


		<style>
			.ball1, .ball2, .ball3, .ball4, .ball5 {
				position: relative;
				float: left;
				width: 200px;
				height: 200px;
				margin: 2px;
				background: #ccc;
				border-radius: 100%;
			}
			.ball1:after,
			.ball2:after,
			.ball3:after,
			.ball4:after,
			.ball5:after {
				content: '6';
				text-align: center;
				line-height: 60px;
				font-size: 24px;
				color: red;
				font-weight: bolder;
				width: 60px;
				height: 60px;
				border-radius: 100%;
				background-color: #fff;
				position: absolute;
				left: 50%;
				top: 50%;
				margin-left: -30px;
				margin-top: -30px;
				z-index: 2;
			}
			.ball1 {
				background-color: #0b24fb;
			}
			.ball2 {
				background-color: #000000;
			}
			.ball3 {
				background-color: #fc0d1b;
			}
			.ball4 {
				position: absolute;
				left: 100px;
				top: 175px;
				background-color: #f9f743;
			}
			.ball5 {
				left: -100px;
				top: 175px;
				background-color: #29fd2e;
			}
		</style>


	</body>
</html>